﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Can_I_Drive
{
    public class Bevanda
    {
        private static int indexID = 1;
        private int id;
        private string nome;
        private int grado;
        private int quantita;//in ml
        private int selez;
        private double pesoAlc;//alcool ingerito in grammi

        public string getNome() { return nome; }

        public int getGrado() { return grado; }

        public int getquantita() { return quantita; }

        public int getID() { return id; }

        public int getSelez() { return selez; }

        public void setSelez(int s) { this.selez = s; }

        public double getPeso() { return pesoAlc;  }
        
        //costruttore bevanda
        public Bevanda(String n, int g, int q)
        {
            this.id = indexID; indexID++;
            this.nome = n;
            this.grado = g;
            this.quantita = q;//in ml
            this.selez = 0;
            this.pesoAlc = (double)this.quantita  * (double)this.grado * 0.008;//alcool ingerito in grammi
        }

    }

}
